//
//  MTRedpacketInfo.swift
//  MT
//
//  Created by ooops on 2020/5/20.
//  Copyright © 2020 张强. All rights reserved.
//

import Foundation

enum MTRedpacketType: Int {
    /// 默认
    case `default`
    /// 俱乐部红包
    case club
    /// 广场红包
    case platform
    /// 好友红包
    case single
    /// 聚会任务红包
    case task
}

class MTRedpacketInfo: NSObject {
    var msgId: String = ""
    
    var status: MTOpenRedpackStatus = .unkonw
    
    var type: MTRedpacketType = .default
    
    
    /// 红包消息对象
    /// - Parameters:
    ///   - msgId: 红包消息Id
    ///   - status: 红包状态
    ///   - type: 红包类型
    static func create(msgId: String = "", status: MTOpenRedpackStatus = .unkonw, type: MTRedpacketType = .default) -> MTRedpacketInfo {
        let info = MTRedpacketInfo()
        info.msgId = msgId
        info.status = status
        info.type = type
        return info
    }
}
